Xceed DataGrid for WPF v7.3 Documentation
Xceed.Wpf.DataGrid Assembly / Xceed.Wpf.DataGrid Namespace / ContentElementCollection<T> Class / Move Method
The index of the item to move.
The index where the item is to be moved.


In This Topic
    Move Method
    In This Topic
    Moves an item in the collection.
    Syntax
    'Declaration
     
    Public Sub Move( _
       ByVal oldIndex As Integer, _
       ByVal newIndex As Integer _
    ) 
    'Usage
     
    Dim instance As ContentElementCollection(Of T)
    Dim oldIndex As Integer
    Dim newIndex As Integer
     
    instance.Move(oldIndex, newIndex)
    public void Move( 
       int oldIndex,
       int newIndex
    )

    Parameters

    oldIndex
    The index of the item to move.
    newIndex
    The index where the item is to be moved.
    Remarks
    An invalid index will raise an exception.
    Requirements

    Target Platforms: Windows 11, Windows, 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also